﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Infragistics.Win.UltraMessageBox;
using Innova.Microfinanzas.BusinessEntities;
using MyCommerce.ManagementBase.Common.Base.BaseEntities;

namespace MyCommerce.ManagementBase.Common.Base.Common
{
    public partial class BaseForm : Form
    {
        public BaseForm()
        {
            InitializeComponent();
            Context = new ContextEntity();
            Parameter = null;
            Result = null;
        }

        public ContextEntity Context
        {
            get;
            set;
        }

        public object Parameter
        {
            get;
            set;
        }

        public object Result
        {
            get;
            set;
        }

        public virtual void ShowCalculatorControl() { }

        private void BaseForm_DoubleClick(object sender, EventArgs e)
        {
            if (!this.IsMdiChild)
                Context.ParentForm.ShowCalculatorControl();
        }
    }
}
